﻿using SHKF.B2C.Model;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using System.Windows.Data; 

namespace SHKF.B2C.Mannage.AdminUI.Converter
{
    public class PlatformToImageConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            string strValue = value.ToString();
            if (value == null || strValue == "")
            {
                return null;
            }
            else
            {
                if(strValue == PlatformEnum.YouZanYun)
                {
                    return "/SHKF.B2C.Mannage.AdminUI;component/Style/Images/有赞云.png";
                }

                return null;
            }
            
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return value;
        }
    }
}
